package com.tz.farmer.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 渔场养殖抽检
 */
@Data
public class FarmerSummary implements Serializable {

    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(hidden = true)
    private String market;

    @ApiModelProperty(hidden = true)
    private String channel;

    @NotNull(message = "占比不能为空")
    @ApiModelProperty(value = "比率")
    private Double rate;

    @NotNull(message = "数量不能为空")
    @ApiModelProperty(value = "数量")
    private Integer count;

    @NotBlank(message = "抽检类别不能为空")
    @ApiModelProperty(value = "类别;可选:完成,合格,处置")
    private String type;

    @ApiModelProperty(hidden = true)
    private Integer deleted;
}
